﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        string username;
        string pwd;
        protected void Page_Load(object sender, EventArgs e)
        {
            string s1= Request.HttpMethod;
            if (s1=="GET")
            {
               username = Request.QueryString["username"];
               pwd = Request.QueryString["pwd"];
            }
            else if (s1=="POST")
            {
                username = Request.Params["username"];
                pwd = Request.Params["pwd"];
            }
            Response.Write($"<h1> 欢迎你，{ username}，你的密码是：{ pwd}</h1> ");
        }
    }
}